#ifndef SYSREGISTERDIALOG_H
#define SYSREGISTERDIALOG_H

#include <QDialog>
#include "SysOpenCV.h"
#include "SysDAL.h"
#include <QCloseEvent>

namespace Ui {
class SysRegisterDialog;
}

class SysRegisterDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SysRegisterDialog(QWidget *parent = nullptr);
    ~SysRegisterDialog();

    void CvOpenCam();

    void CvCloseCam();



public slots:

    void CvNextFrame();



private slots:


    void on_pushButton_clicked();

    void on_pushButton_2_clicked();


    void on_BtnSeatQue_clicked();

private:
    Ui::SysRegisterDialog *ui;
    SysOpenCV *sysOC;
    SysDBL *sysDB;

    // CV 相关
    cv::Mat frame;

    cv::VideoCapture capture;

    QImage  image;

    QTimer *timer;

    void closeEvent(QCloseEvent *event);

};

#endif // SYSREGISTERDIALOG_H
